TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt


SOURCES += \
        main.cpp \
    drm_plane_drv.c

HEADERS += \
    debug.h \
    drm_plane_drv.h

FORMS +=

SYSROOT=/opt/petalinux/2020.1/sysroots/aarch64-xilinx-linux
#SYSROOT=/opt/sdk-ai/sysroots/aarch64-xilinx-linux

INCLUDEPATH += \
$${SYSROOT}/usr/include/opencv \
               $${SYSROOT}/usr/include/opencv2 \
$${SYSROOT}/usr/include/gstreamer-1.0 \
$${SYSROOT}/usr/include/aarch64-linux-gnu/ \
              $${SYSROOT}/usr/lib/gstreamer-1.0/include \
              $${SYSROOT}/usr/include/glib-2.0 \
             $${SYSROOT}/usr/lib/glib-2.0/include \
              $${SYSROOT}/usr/include/ \
              $${SYSROOT}/usr/include/drm \
              $${SYSROOT}/usr/include/libdrm \
              $${SYSROOT}/usr/include/libkms/

LIBS += \
        -L$${SYSROOT}/usr/lib \
        -L$${SYSROOT}/lib/ \
        -L$${SYSROOT}/lib/aarch64-linux-gnu/ \
#        -L$${SYSROOT}/usr/lib/libdrm.so \
#        -lgstreamer-1.0 \
#        -lgstapp-1.0 \
#        -lgobject-2.0 \
#        -lglib-2.0 \
        -ldrm \
#        -lkms \
#$${SYSROOT}/usr/lib/libopencv_*.so.* \
#        -L$${SYSROOT}/usr/lib \
#        -lgstreamer-1.0 \
#        -lgstapp-1.0 \
#        -lgobject-2.0 \
#        -lglib-2.0 \
#        -lpthread


#target.path = /home/root
target.path = /home/toybrick
INSTALLS += target
